<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//
//];

use think\Route;

//后台admin接口
//登陆接口
Route::post('api/admin_login', 'api/admin.Login/login');
Route::post('api/admin_upload', 'api/admin.Upload/upload');
Route::post('api/admin_oss_upload', 'api/admin.OssUpload/upload');
Route::any('api/admin_ueditor', 'api/admin.Ueditor/index');
Route::any('api/admin_oss_ueditor', 'api/admin.OssUeditor/index');


//个人中心接口
//登陆接口
Route::post('api/login', 'api/member.Login/login');
//测试接口
Route::post('api/test', 'api/member.Test/index');


Route::get('api/index/:id', 'api/Index/index');